package ${modulePackageName}.${camelModelName}.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import ${modulePackageName}.model.${modelName};
import ${modulePackageName}.mapper.${modelName}Mapper;
import ${modulePackageName}.${camelModelName}.service.${modelName}Service;
/**
 * ${modelName}服务实现。
 * 
 * @author ${authorName}
 *
 */
@Service
public class ${modelName}ServiceImpl implements ${modelName}Service{

	@Autowired
	private ${modelName}Mapper ${camelModelName}Mapper;
	@Override
	public String selectPasswordBy${modelName}Name(String ${camelModelName}name) {
		return ${camelModelName}Mapper.selectPasswordBy${modelName}Name(${camelModelName}name);
	}
	@Override
	public List<${modelName}> select${modelName}ByCondition(${modelName} ${camelModelName}) {
		return ${camelModelName}Mapper.select${modelName}ByCondition(${camelModelName});
	}
	@Override
	public int insert(${modelName} ${camelModelName}) {
		return ${camelModelName}Mapper.insertSelective(${camelModelName});
	}
	@Override
	public ${modelName} select${modelName}ById(String id) {
		return ${camelModelName}Mapper.selectByPrimaryKey(id);
	}
	@Override
	public int update(${modelName} ${camelModelName}) {
		return ${camelModelName}Mapper.updateByPrimaryKeySelective(${camelModelName});
	}
	@Override
	public int delete(String id) {
		return ${camelModelName}Mapper.deleteByPrimaryKey(id);
	}

}